FROM @dockerBuildImage@
LABEL maintainer="nancal"

ENV TZ "Asia/Shanghai"
ENV LC_ALL=en_US.UTF-8
ENV PROFILE ""
ENV APP_NAME "@appName@"


WORKDIR /app

ADD code/@folder@  /app/

RUN  pip  install -r  requirements.txt
RUN cat > /app/config.json <<'EOF'
#!/bin/bash
if [ -e "start.sh" ]; then
    bash start.sh --profile='${PROFILE}'
else
    python  main.py --profile='${PROFILE}'
fi
EOF


CMD start-python.sh